﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SafeHomeSystem
{
    class Surveil_sensors
    {
        private string type = "安全";
        private string condition = "安全";
        private bool state = true;
        public void SetCondition(int i)
        {
            if(i==0)
            {
                condition = "安全";
            }
            else if(i==1)
            {
                condition= "异常";
            }
            else if(i==2)
            {
                condition= "警报";
            }
        }
        public void SetState(int i)
        {
            if (i==0)
            {
                state = true;
            }
            else 
            {
                state=false;
            }
        }


        public string GetCondition()
        {
            return condition;
        }
        public bool GetState()
        {
            return state;
        }
    }
}
